<?php

use backend\assets\DialogAsset;
DialogAsset::register($this);  // $this 代表视图对象
header('cache-control:private,must_revalidate');
?>

<script>
    swal({
            title: '<?= $title ?>',
            text: '<?= $content ?>',
            type: '<?= $type ?>',
            html:true,
            confirmButtonColor: "#DD6B55",
            confirmButtonText: "知道了！",
            closeOnConfirm: false
        }
        ,function () {
        <?php if (!empty($url)) { ?>
            window.location.href='<?=$url?>';
        <?php } else { ?>
            window.history.back();
        <?php } ?>
    });
</script>







